package com.shopowner.service;


import com.shopowner.dto.DTO;
import com.shopowner.entity.Field;
import com.shopowner.page.PageInfo;


public interface FieldService {
    /**
     * 查询全部店长
     * @return
     */
    public DTO<Field> getAllFields() throws Exception;

    /**
     * 删除店长
     * @return
     */

    public DTO<Field> deleteFieldByFno(String fno) throws Exception;
    /**
     * 根据主键查询教练员
     * @return
     */
    public DTO<Field> selectFieldByFno(String fno) throws Exception;
    /**
     * 修改店长
     * @return
     */
    public DTO<Field> updateFieldByFno(Field field) throws Exception;
    /**
     * 增加店长
     * @return
     */
    public DTO<Field> addField(Field field) throws Exception;
    /**
     * 分页查询店长
     * @return
     */
    public DTO<Field> getFieldByPage(PageInfo pageInfo) throws Exception;

}
